$zip = zip_open('./index.zip');

if ($zip) {
    while ($zip_entry = zip_read($zip)) {

        if (zip_entry_open($zip, $zip_entry, "r")) {
            echo "File Contents:\n";
            $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
            echo "$buf<br>";

            zip_entry_close($zip_entry);
        }
        echo "<br>";

    }

    zip_close($zip);

}